package org.jeecg.modules.experiment_student.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.experiment_student.entity.AstuExperimentUser;
import org.jeecg.modules.experiment_student.mapper.AstuExperimentUserMapper;
import org.jeecg.modules.experiment_student.service.IAstuExperimentUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description: 实验和用户表
 * @Author: jeecg-boot
 * @Date:   2020-11-05
 * @Version: V1.0
 */
@Service
public class AstuExperimentUserServiceImpl extends ServiceImpl<AstuExperimentUserMapper, AstuExperimentUser> implements IAstuExperimentUserService {
@Resource
private AstuExperimentUserMapper astuExperimentUserMapper;
    @Override
    public AstuExperimentUser selectByExpermrntIdAndUserId(String experimentId, String UserId) {
        return astuExperimentUserMapper.selectByExpermrntIdAndUserId(experimentId,UserId);
    }

    @Override
    public void updateScoreById(String id, String score) {
        astuExperimentUserMapper.updateScoreById(id,score);
    }
}
